﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for EQuangCao
/// </summary>
public class EQuangCao
{
    private int maQC;
	private string tenCongTy;
	private string hinhAnh;
	private string lienKet;
	private Boolean trangThai;
	private string quanTriVien;
	public EQuangCao()
	{}
	public EQuangCao(int maQC,string tenCongTy,string hinhAnh,string lienKet,Boolean trangThai,string quanTriVien)
	{
	this.maQC = maQC;
	this.tenCongTy = tenCongTy;
	this.hinhAnh = hinhAnh;
	this.lienKet = lienKet;
	this.trangThai = trangThai;
	this.quanTriVien = quanTriVien;
	}
	public int MaQC{
	get { return this.maQC;}
	set { if(value==null) 
		throw new Exception("maQC not allow nullvalue.");
		this.maQC=value;
	}	}
	public string TenCongTy{
	get { return this.tenCongTy;}
	set {this.tenCongTy=value;}
	}
	public string HinhAnh{
	get { return this.hinhAnh;}
	set {this.hinhAnh=value;}
	}
	public string LienKet{
	get { return this.lienKet;}
	set {this.lienKet=value;}
	}
	public Boolean TrangThai{
	get { return this.trangThai;}
	set {this.trangThai=value;}
	}
	public string QuanTriVien{
	get { return this.quanTriVien;}
	set {this.quanTriVien=value;}
	}
	public override string ToString(){
	return this.maQC+"; "+this.tenCongTy+"; "+this.hinhAnh+"; "+this.lienKet+"; "+this.trangThai+"; "+this.quanTriVien+"; ";
	}
	public override bool Equals(Object obj)
	{
	EQuangCao me=(EQuangCao)obj;
	bool ret=this.MaQC.Equals(me.MaQC);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaQC.GetHashCode();
	}

}